<? session_start();
//require("checksession.php");

	$a= opendir("../anhtin/");
	$i=0;
	echo "<table width=100% border=0>";
	while (false !=($f=readdir($a))){
		//var_dump($f);
		if ($i==0) echo "<tr>";
		if ($f!="." && $f!="..") {
			echo "<td valign=top><a href=# onclick=\"window.opener.document.f.anh.value='{$f}';window.close();\"><img width=100 border=0 src='../anhtin/{$f}'></a><br>";
			echo "<a href=# onclick=\"window.opener.document.f.pimage.value='{$f}';window.close();\">{$f}</a></td>";
			$i++;
		}
		
		if ($i==4){
			$i=0;
			echo "</tr>";
		}
			
		
	}


?>
